package dbbaas;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.google.gson.JsonArray;

public class ResMsgItem {
	private int status;
	private int code;
	private String msg;
	private String message;
	private String key;
	private String users_sn;
	private String phoneno;
	private String item;
	private JSONObject value;
	private JSONArray data;
	private int sum;
	private String time;
	private String exchange;
	String template;
	boolean statused;
	private int rows;

	public boolean isStatused() {
		if (getStatus() == 0) {
			setStatused(true);
		} else {
			setStatused(false);
		}
		return statused;
	}

	public int getRows() {
		return sum;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public JSONArray getData() {
		return data;
	}

	public JSONObject getValue() {
		return value;
	}

	public void setValue(JSONObject value) {
		this.value = value;
	}

	public void setData(JSONArray data) {
		this.data =data ;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setStatused(boolean statused) {
		this.statused = statused;
	}

	public String getTemplate() {
		return template;
	}

	public void setTemplate(String template) {
		this.template = template;
	}

	public String getExchange() {
		return exchange;
	}

	public void setExchange(String exchange) {
		this.exchange = exchange;
	}

	public int getStatus() {
		return getCode();
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getUsers_sn() {
		return users_sn;
	}

	public void setUsers_sn(String users_sn) {
		this.users_sn = users_sn;
	}

	public String getPhoneno() {
		return phoneno;
	}

	public void setPhoneno(String phoneno) {
		this.phoneno = phoneno;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public int getSum() {
		return sum;
	}

	public void setSum(int sum) {
		this.sum = sum;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}
}
